/****
 * 项目管理
 */
import request from '@/utils/request'

// 项目管理列表查询
export function getOrdproject(data) {
  return request({
    url: '/ord/order/ordproject/list',
    method: 'post',
    data
  })
}
// 新建项目
export function addOrdproject(data) {
  return request({
    url: '/ord/order/ordproject/save',
    method: 'post',
    data
  })
}
// 修改项目
export function updateOrdproject(data) {
  return request({
    url: '/ord/order/ordproject/update',
    method: 'put',
    data: data
  })
}
//删除项目
export function delProRemoveById(projectId) {
  return request({
    url: '/ord/order/ordproject/proRemoveById?projectIds=' + projectId,
    method: 'delete'
  })
}
//查询项目详情
export function getProInfo(query) {
  return request({
    url: '/ord/order/ordproject/getProInfo',
    method: 'get',
    params: query
  })
}
// 项目状态更新
export function updateStatus(data) {
  return request({
    url: '/ord/order/ordproject/updateStatus',
    method: 'put',
    data: data
  })
}
//查询投标项目评分情况表
export function getScaleMarkList(query) {
  return request({
    url: '/ord/order/ordscalemarks/getScaleMarkList',
    method: 'get',
    params: query
  })
}
//根据项目信息获取验收列表列表
export function getListByProjectId(data) {
  return request({
    url: '/ord/order/ordprojectcheck/getListByProjectId',
    method: 'POST',
    data
  })
}
// 获取投标结果反馈详情
export function getProInfoByBidId(params) {
  return request({
    url: '/ord/order/ordproject/getProInfoByBidId',
    method: 'get',
    params
  })
}

// 投标结果反馈修改接口
export function biddingUpdate(data) {
  return request({
    url: '/ord/order/ordbiddinginformation/biddingUpdate',
    method: 'put',
    data: data
  })
}

// 项目模糊搜索
export function getSelectLikePros(data) {
  return request({
    url: '/ord/order/ordproject/selectLikePros',
    method: 'get',
    params: data
  })
}

// 无权限控制项目模糊搜索
export function getOrdprojectNoPriv(data) {
  return request({
    url: '/ord/order/ordproject/listNoPriv',
    method: 'post',
    data
  })
}
// 获取项目和投标结果反馈等模块审批状态接口
export function getProStatusByBusinessIds(data) {
  return request({
    url: '/bpmn/workflow/process/getProStatusByBusinessIds',
    method: 'post',
    data
  })
}

// ---项目实施记录---
// 项目实施记录列表查询
export function listSituation(query) {
  return request({
    url: '/ord/implementation/list',
    method: 'get',
    params: query
  })
}
// 新建项目实施记录
export function setSituation(data) {
  return request({
    url: '/ord/implementation/save',
    method: 'post',
    data
  })
}
//删除项目实施记录
export function delSituationById(id) {
  return request({
    url: '/ord/implementation/delete/' + id,
    method: 'post'
  })
}
//查询项目实施记录详情
export function getSituationDetail(id) {
  return request({
    url: '/ord/implementation/detail/' + id,
    method: 'get'
  })
}
//删除项目实施记录明细
export function delSituationDetailById(id) {
  return request({
    url: '/ord/implementation/detail/delete/' + id,
    method: 'post'
  })
}

// 项目变更申请列表查询
export function listProjectChange(query) {
  return request({
    url: '/ord/project/change/list',
    method: 'get',
    params: query
  })
}
// 新建项目变更申请
export function setProjectChange(data) {
  return request({
    url: '/ord/project/change/save',
    method: 'post',
    data
  })
}
//删除项目变更申请
export function delProjectChange(id) {
  return request({
    url: '/ord/project/change/delete/' + id,
    method: 'post'
  })
}
//查询项目变更申请详情
export function getProjectChange(id) {
  return request({
    url: '/ord/project/change/detail/' + id,
    method: 'get'
  })
}

// 项目结项报告列表查询
export function listClosingReport(query) {
  return request({
    url: '/ord/project/junction/list',
    method: 'get',
    params: query
  })
}
// 新建项目结项报告
export function setClosingReport(data) {
  return request({
    url: '/ord/project/junction/save',
    method: 'post',
    data
  })
}
//删除项目结项报告
export function delClosingReport(id) {
  return request({
    url: '/ord/project/junction/delete/' + id,
    method: 'post'
  })
}
//查询项目结项报告详情
export function getClosingReport(id) {
  return request({
    url: '/ord/project/junction/detail/' + id,
    method: 'get'
  })
}
// ---项目实施记录---
